package com.swl.dao;

import com.swl.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserDao {
    int insertUser(User user);
    int updateUser(User user);
    int deleteUser(int id);
    User selectUserById(int id);
    List<User> selectAllUser();
    User selectUserByNamePwdFlag(@Param("userName") String userName, @Param("userPwd")String userPwd, @Param("userFlag")Integer userFlag);
}
